﻿import QtQuick 2.12

TableView {
    id:view
    HHorHeader {
        id: horizontalHeader
        y: view.contentY
        z: 2
    }
    columnSpacing: 1
    rowSpacing: 1
    topMargin: horizontalHeader.implicitHeight + 1
    clip: true
    delegate: Rectangle {
        id: cell
        implicitWidth: 25
        implicitHeight: 25
        color: root.blendent[1]
        Text{
            text: {
                model.TheTruth
            }
            color: "white"
            horizontalAlignment: Text.AlignHCenter
            verticalAlignment: Text.AlignVCenter
            width: cell.width
            height: cell.height
            font.pixelSize: 14
        }

        RotationAnimation {
            id: rotationAnimation
            target: cell
            duration: (Math.random() * 2000) + 200
            from: 0
            to: 359
            running: false
            loops: Animation.Infinite
        }
    }
    model: modelH;

    columnWidthProvider: function (column) {
        if (column === 1)
            return 140;
        else
            return 70;
    }
}

/*##^## Designer {
    D{i:0;autoSize:true;height:480;width:640}
}
 ##^##*/
